<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>招聘筛选 - 社交招聘平台</title>
  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
  
  <style>
    body {
      background-color: #f5f5f5;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      padding-bottom: 70px;
    }
    
    /* 顶部导航 */
    .top-nav {
      background-color: white;
      padding: 12px 15px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.05);
      position: sticky;
      top: 0;
      z-index: 100;
    }
    
    .nav-title {
      font-size: 18px;
      font-weight: 600;
      text-align: center;
      margin: 0;
    }
    
    /* 搜索区 */
    .search-container {
      padding: 10px 15px;
      background-color: white;
    }
    
    .search-bar {
      position: relative;
      display: flex;
      gap: 10px;
    }
    
    .search-input {
      flex: 1;
      padding: 10px 15px 10px 40px;
      border-radius: 20px;
      border: 1px solid #eee;
      background-color: #f9f9f9;
      font-size: 14px;
    }
    
    .search-input:focus {
      outline: none;
      border-color: #0d6efd;
      background-color: white;
    }
    
    .search-icon {
      position: absolute;
      left: 25px;
      top: 50%;
      transform: translateY(-50%);
      color: #999;
    }
    
    .voice-search {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: #f9f9f9;
      border: 1px solid #eee;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #666;
    }
    
    /* 筛选方式切换 */
    .filter-tabs {
      display: flex;
      background-color: white;
      border-bottom: 1px solid #eee;
    }
    
    .filter-tab {
      flex: 1;
      padding: 12px 0;
      text-align: center;
      font-size: 15px;
      color: #666;
      position: relative;
    }
    
    .filter-tab.active {
      color: #0d6efd;
    }
    
    .filter-tab.active::after {
      content: '';
      position: absolute;
      bottom: -1px;
      left: 0;
      right: 0;
      height: 3px;
      background-color: #0d6efd;
      border-radius: 3px 3px 0 0;
    }
    
    /* 快捷筛选区 */
    .quick-filters {
      padding: 10px 15px;
      background-color: white;
      border-bottom: 1px solid #eee;
      display: flex;
      overflow-x: auto;
      gap: 10px;
    }
    
    .quick-filter {
      white-space: nowrap;
      padding: 6px 14px;
      border-radius: 15px;
      font-size: 14px;
      background-color: #f5f5f5;
      color: #333;
      flex-shrink: 0;
    }
    
    .quick-filter.active {
      background-color: #0d6efd;
      color: white;
    }
    
    /* 高级筛选面板 */
    .advanced-filters {
      background-color: white;
      padding: 15px;
      display: none;
    }
    
    .advanced-filters.active {
      display: block;
    }
    
    .filter-section {
      margin-bottom: 20px;
    }
    
    .filter-title {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 12px;
      color: #333;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .filter-title i {
      color: #0d6efd;
    }
    
    .filter-options {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }
    
    .filter-option {
      padding: 6px 14px;
      border-radius: 15px;
      font-size: 14px;
      border: 1px solid #ddd;
      color: #555;
      background-color: white;
    }
    
    .filter-option.active {
      border-color: #0d6efd;
      color: #0d6efd;
      background-color: #f0f7ff;
    }
    
    .filter-actions {
      display: flex;
      gap: 10px;
      padding: 10px 15px;
      background-color: white;
      border-top: 1px solid #eee;
    }
    
    .filter-action {
      flex: 1;
      padding: 10px;
      border-radius: 8px;
      font-size: 16px;
    }
    
    /* 下拉筛选面板 */
    .dropdown-filter {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: rgba(0,0,0,0.5);
      z-index: 1000;
      display: none;
    }
    
    .dropdown-filter.active {
      display: block;
    }
    
    .dropdown-content {
      background-color: white;
      max-height: 80%;
      border-radius: 16px 16px 0 0;
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      overflow-y: auto;
    }
    
    .dropdown-header {
      padding: 15px;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .dropdown-title {
      font-size: 18px;
      font-weight: 600;
      margin: 0;
    }
    
    .dropdown-close {
      background: transparent;
      border: none;
      font-size: 20px;
      color: #999;
    }
    
    .dropdown-options {
      padding: 15px;
    }
    
    .option-group {
      margin-bottom: 25px;
    }
    
    .option-group-title {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 12px;
      color: #333;
    }
    
    .option-items {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }
    
    .option-item {
      padding: 6px 14px;
      border-radius: 15px;
      font-size: 14px;
      border: 1px solid #ddd;
      color: #555;
      background-color: white;
    }
    
    .option-item.active {
      border-color: #0d6efd;
      color: #0d6efd;
      background-color: #f0f7ff;
    }
    
    .dropdown-actions {
      padding: 15px;
      border-top: 1px solid #eee;
      display: flex;
      gap: 10px;
      position: sticky;
      bottom: 0;
      background-color: white;
    }
    
    .dropdown-action {
      flex: 1;
      padding: 10px;
      border-radius: 8px;
      font-size: 16px;
    }
    
    /* 已选条件区 */
    .selected-filters {
      padding: 8px 15px;
      background-color: white;
      border-top: 1px solid #eee;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    
    .filter-tag {
      padding: 3px 10px;
      background-color: #f0f7ff;
      color: #0d6efd;
      border-radius: 15px;
      font-size: 13px;
      display: flex;
      align-items: center;
      gap: 5px;
    }
    
    .tag-remove {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background-color: rgba(13,110,253,0.1);
      color: #0d6efd;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
    }
    
    /* 招聘列表 */
    .job-list {
      margin-top: 10px;
    }
    
    .job-item {
      background-color: white;
      margin-bottom: 10px;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    
    .job-header {
      padding: 15px;
      display: flex;
      gap: 12px;
    }
    
    .company-logo {
      width: 60px;
      height: 60px;
      border-radius: 8px;
      object-fit: cover;
      flex-shrink: 0;
    }
    
    .no-logo {
      width: 60px;
      height: 60px;
      border-radius: 8px;
      background-color: #f5f5f5;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #999;
      font-size: 24px;
      flex-shrink: 0;
    }
    
    .job-info {
      flex: 1;
    }
    
    .job-title {
      font-size: 17px;
      font-weight: 600;
      color: #333;
      margin-bottom: 5px;
    }
    
    .company-name {
      font-size: 14px;
      color: #666;
      margin-bottom: 3px;
    }
    
    .job-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
    }
    
    .job-tag {
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 12px;
      background-color: #f0f7ff;
      color: #0d6efd;
    }
    
    .job-tag.salary {
      background-color: #fff0f0;
      color: #dc3545;
    }
    
    /* 图片展示区 */
    .images-container {
      padding: 0 15px 10px;
    }
    
    .single-image {
      width: 100%;
      border-radius: 8px;
      overflow: hidden;
    }
    
    .single-image img {
      width: 100%;
      height: 180px;
      object-fit: cover;
    }
    
    .multiple-images {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 5px;
    }
    
    .multi-image-item {
      aspect-ratio: 1;
      border-radius: 8px;
      overflow: hidden;
      position: relative;
    }
    
    .multi-image-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .image-count {
      position: absolute;
      bottom: 5px;
      right: 5px;
      background-color: rgba(0,0,0,0.6);
      color: white;
      font-size: 12px;
      padding: 2px 5px;
      border-radius: 4px;
    }
    
    .job-details {
      padding: 0 15px 15px;
    }
    
    .job-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 10px;
      font-size: 13px;
      color: #666;
    }
    
    .meta-item {
      display: flex;
      align-items: center;
      gap: 5px;
    }
    
    .meta-item i {
      color: #999;
      font-size: 14px;
    }
    
    .job-desc {
      font-size: 14px;
      color: #555;
      line-height: 1.5;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    
    /* 底部导航 */
    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background-color: white;
      border-top: 1px solid #eee;
      display: flex;
      padding: 8px 0;
      z-index: 100;
    }
    
    .nav-item {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      color: #999;
      font-size: 10px;
    }
    
    .nav-item.active {
      color: #0d6efd;
    }
    
    .nav-icon {
      font-size: 20px;
      margin-bottom: 3px;
    }
  </style>
</head>
<body>
  <!-- 顶部导航 -->
  <div class="top-nav d-flex justify-content-between align-items-center">
    <button class="btn btn-link p-0 text-dark">
      <i class="fa fa-bars"></i>
    </button>
    <h1 class="nav-title">职位搜索</h1>
    <button class="btn btn-link p-0 text-dark">
      <i class="fa fa-history"></i>
    </button>
  </div>
  
  <!-- 搜索区 -->
  <div class="search-container">
    <div class="search-bar">
      <i class="fa fa-search search-icon"></i>
      <input type="text" class="search-input" placeholder="搜索职位、公司或关键词...">
      <button class="voice-search">
        <i class="fa fa-microphone"></i>
      </button>
    </div>
  </div>
  
  <!-- 筛选方式切换 -->
  <div class="filter-tabs">
    <div class="filter-tab active" data-view="quick">快捷筛选</div>
    <div class="filter-tab" data-view="advanced">高级筛选</div>
  </div>
  
  <!-- 快捷筛选区 -->
  <div class="quick-filters-container">
    <div class="quick-filters">
      <div class="quick-filter active" data-type="all">全部职位</div>
      <div class="quick-filter" data-type="fulltime">全职</div>
      <div class="quick-filter" data-type="parttime">兼职</div>
      <div class="quick-filter" data-type="intern">实习</div>
      <div class="quick-filter" data-type="remote">远程</div>
    </div>
    
    <div class="quick-filters">
      <div class="quick-filter" data-panel="salary">薪资</div>
      <div class="quick-filter" data-panel="experience">经验</div>
      <div class="quick-filter" data-panel="education">学历</div>
      <div class="quick-filter" data-panel="location">地区</div>
      <div class="quick-filter" data-panel="industry">行业</div>
    </div>
  </div>
  
  <!-- 高级筛选面板 -->
  <div class="advanced-filters">
    <div class="filter-section">
      <h3 class="filter-title"><i class="fa fa-briefcase"></i> 工作类型</h3>
      <div class="filter-options">
        <div class="filter-option">全职</div>
        <div class="filter-option">兼职</div>
        <div class="filter-option">实习</div>
        <div class="filter-option">远程</div>
        <div class="filter-option">全职/实习</div>
      </div>
    </div>
    
    <div class="filter-section">
      <h3 class="filter-title"><i class="fa fa-money"></i> 薪资范围</h3>
      <div class="filter-options">
        <div class="filter-option">3k以下</div>
        <div class="filter-option">3k-5k</div>
        <div class="filter-option">5k-8k</div>
        <div class="filter-option">8k-10k</div>
        <div class="filter-option">10k-15k</div>
        <div class="filter-option">15k-20k</div>
        <div class="filter-option">20k-30k</div>
        <div class="filter-option">30k以上</div>
      </div>
    </div>
    
    <div class="filter-section">
      <h3 class="filter-title"><i class="fa fa-line-chart"></i> 工作经验</h3>
      <div class="filter-options">
        <div class="filter-option">经验不限</div>
        <div class="filter-option">应届毕业生</div>
        <div class="filter-option">1年以内</div>
        <div class="filter-option">1-3年</div>
        <div class="filter-option">3-5年</div>
        <div class="filter-option">5-10年</div>
        <div class="filter-option">10年以上</div>
      </div>
    </div>
    
    <div class="filter-section">
      <h3 class="filter-title"><i class="fa fa-graduation-cap"></i> 学历要求</h3>
      <div class="filter-options">
        <div class="filter-option">学历不限</div>
        <div class="filter-option">高中及以下</div>
        <div class="filter-option">中专/技校</div>
        <div class="filter-option">大专</div>
        <div class="filter-option">本科</div>
        <div class="filter-option">硕士</div>
        <div class="filter-option">博士</div>
      </div>
    </div>
  </div>
  
  <!-- 筛选操作按钮 -->
  <div class="filter-actions">
    <button class="btn btn-outline-secondary filter-action" id="reset-filter">重置</button>
    <button class="btn btn-primary filter-action" id="apply-filter">应用筛选</button>
  </div>
  
  <!-- 已选筛选条件 -->
  <div class="selected-filters">
    <div class="filter-tag">
      全职 <span class="tag-remove">×</span>
    </div>
    <div class="filter-tag">
      10k-20k <span class="tag-remove">×</span>
    </div>
    <div class="filter-tag">
      北京 <span class="tag-remove">×</span>
    </div>
    <button class="btn btn-link p-0 text-sm text-gray-500" id="clear-all">
      清除全部
    </button>
  </div>
  
  <!-- 招聘列表 -->
  <div class="job-list">
    <!-- 1. 无图片招聘 -->
    <div class="job-item">
      <div class="job-header">
        <img src="https://picsum.photos/200/200?random=1" class="company-logo" alt="公司logo">
        <div class="job-info">
          <div class="job-title">高级前端开发工程师</div>
          <div class="company-name">科技有限公司 · 互联网</div>
          <div class="job-tags">
            <span class="job-tag salary">15k-25k·13薪</span>
            <span class="job-tag">全职</span>
            <span class="job-tag">3-5年</span>
            <span class="job-tag">本科</span>
          </div>
        </div>
      </div>
      
      <div class="job-details">
        <div class="job-meta">
          <div class="meta-item"><i class="fa fa-map-marker"></i> 北京市朝阳区</div>
          <div class="meta-item"><i class="fa fa-subway"></i> 距地铁10号线500米</div>
          <div class="meta-item"><i class="fa fa-clock-o"></i> 发布于 今天</div>
        </div>
        
        <div class="job-desc">
          负责公司核心产品的前端开发工作，与产品经理和后端工程师密切配合，构建高质量的用户界面和交互体验，要求精通Vue、React等主流框架。
        </div>
      </div>
    </div>
    
    <!-- 2. 单图片招聘 -->
    <div class="job-item">
      <div class="job-header">
        <div class="no-logo">
          <i class="fa fa-building"></i>
        </div>
        <div class="job-info">
          <div class="job-title">餐厅服务员/店员（包吃住）</div>
          <div class="company-name">阳光餐饮管理有限公司</div>
          <div class="job-tags">
            <span class="job-tag salary">5k-7k</span>
            <span class="job-tag">全职</span>
            <span class="job-tag">经验不限</span>
            <span class="job-tag">学历不限</span>
          </div>
        </div>
      </div>
      
      <div class="images-container">
        <div class="single-image">
          <img src="https://picsum.photos/800/400?random=10" alt="餐厅环境">
        </div>
      </div>
      
      <div class="job-details">
        <div class="job-meta">
          <div class="meta-item"><i class="fa fa-map-marker"></i> 北京市海淀区</div>
          <div class="meta-item"><i class="fa fa-cutlery"></i> 餐饮/服务业</div>
          <div class="meta-item"><i class="fa fa-clock-o"></i> 发布于 昨天</div>
        </div>
        
        <div class="job-desc">
          负责餐厅日常服务工作，包括接待顾客、点餐、上菜等，工作环境好，包吃住，有提成，有无经验均可，公司提供培训。
        </div>
      </div>
    </div>
    
    <!-- 3. 多图片招聘 -->
    <div class="job-item">
      <div class="job-header">
        <img src="https://picsum.photos/200/200?random=2" class="company-logo" alt="公司logo">
        <div class="job-info">
          <div class="job-title">室内设计师助理（可实习）</div>
          <div class="company-name">创意空间设计工作室</div>
          <div class="job-tags">
            <span class="job-tag salary">8k-12k</span>
            <span class="job-tag">全职</span>
            <span class="job-tag">1-3年</span>
            <span class="job-tag">大专</span>
          </div>
        </div>
      </div>
      
      <div class="images-container">
        <div class="multiple-images">
          <div class="multi-image-item">
            <img src="https://picsum.photos/300/300?random=20" alt="工作环境1">
          </div>
          <div class="multi-image-item">
            <img src="https://picsum.photos/300/300?random=21" alt="工作环境2">
          </div>
          <div class="multi-image-item">
            <img src="https://picsum.photos/300/300?random=22" alt="工作成果1">
          </div>
        </div>
      </div>
      
      <div class="job-details">
        <div class="job-meta">
          <div class="meta-item"><i class="fa fa-map-marker"></i> 北京市东城区</div>
          <div class="meta-item"><i class="fa fa-paint-brush"></i> 设计/创意</div>
          <div class="meta-item"><i class="fa fa-clock-o"></i> 发布于 3天前</div>
        </div>
        
        <div class="job-desc">
          协助设计师完成室内设计项目，包括方案设计、施工图绘制、材料选购等工作，要求熟悉CAD、3DMAX等设计软件，有相关经验者优先。
        </div>
      </div>
    </div>
  </div>
  
  <!-- 底部导航 -->
  <div class="bottom-nav">
    <a href="#" class="nav-item">
      <i class="fa fa-home nav-icon"></i>
      <span>首页</span>
    </a>
    <a href="#" class="nav-item active">
      <i class="fa fa-search nav-icon"></i>
      <span>搜索</span>
    </a>
    <a href="#" class="nav-item">
      <i class="fa fa-briefcase nav-icon"></i>
      <span>职位</span>
    </a>
    <a href="#" class="nav-item">
      <i class="fa fa-user-o nav-icon"></i>
      <span>我的</span>
    </a>
  </div>
  
  <!-- 薪资筛选下拉面板 -->
  <div class="dropdown-filter" id="salary">
    <div class="dropdown-content">
      <div class="dropdown-header">
        <h3 class="dropdown-title">薪资范围</h3>
        <button class="dropdown-close"><i class="fa fa-times"></i></button>
      </div>
      <div class="dropdown-options">
        <div class="option-group">
          <div class="option-items">
            <div class="option-item">3k以下</div>
            <div class="option-item">3k-5k</div>
            <div class="option-item">5k-8k</div>
            <div class="option-item">8k-10k</div>
            <div class="option-item">10k-15k</div>
            <div class="option-item">15k-20k</div>
            <div class="option-item">20k-30k</div>
            <div class="option-item">30k以上</div>
          </div>
        </div>
      </div>
      <div class="dropdown-actions">
        <button class="btn btn-outline-secondary dropdown-action">取消</button>
        <button class="btn btn-primary dropdown-action">确定</button>
      </div>
    </div>
  </div>
  
  <!-- 经验筛选下拉面板 -->
  <div class="dropdown-filter" id="experience">
    <div class="dropdown-content">
      <div class="dropdown-header">
        <h3 class="dropdown-title">工作经验</h3>
        <button class="dropdown-close"><i class="fa fa-times"></i></button>
      </div>
      <div class="dropdown-options">
        <div class="option-group">
          <div class="option-items">
            <div class="option-item">经验不限</div>
            <div class="option-item">应届毕业生</div>
            <div class="option-item">1年以内</div>
            <div class="option-item">1-3年</div>
            <div class="option-item">3-5年</div>
            <div class="option-item">5-10年</div>
            <div class="option-item">10年以上</div>
          </div>
        </div>
      </div>
      <div class="dropdown-actions">
        <button class="btn btn-outline-secondary dropdown-action">取消</button>
        <button class="btn btn-primary dropdown-action">确定</button>
      </div>
    </div>
  </div>
  
  <!-- 其他筛选面板结构类似，省略 -->
  
  <!-- Bootstrap JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  
  <script>
    // 筛选视图切换（快捷/高级）
    const filterTabs = document.querySelectorAll('.filter-tab');
    const quickFiltersContainer = document.querySelector('.quick-filters-container');
    const advancedFilters = document.querySelector('.advanced-filters');
    
    filterTabs.forEach(tab => {
      tab.addEventListener('click', function() {
        // 切换标签激活状态
        filterTabs.forEach(t => t.classList.remove('active'));
        this.classList.add('active');
        
        // 切换筛选视图
        const viewType = this.getAttribute('data-view');
        if (viewType === 'quick') {
          quickFiltersContainer.style.display = 'block';
          advancedFilters.classList.remove('active');
        } else {
          quickFiltersContainer.style.display = 'none';
          advancedFilters.classList.add('active');
        }
      });
    });
    
    // 快捷筛选按钮
    const quickFilters = document.querySelectorAll('.quick-filter');
    quickFilters.forEach(filter => {
      filter.addEventListener('click', function() {
        // 如果是工作类型筛选，切换激活状态
        if (this.hasAttribute('data-type')) {
          const type = this.getAttribute('data-type');
          if (type !== 'all') {
            document.querySelectorAll('.quick-filter[data-type]').forEach(f => {
              f.classList.remove('active');
            });
            this.classList.add('active');
          } else {
            document.querySelectorAll('.quick-filter[data-type]').forEach(f => {
              f.classList.remove('active');
            });
            this.classList.add('active');
          }
        }
      });
    });
    
    // 下拉筛选面板控制
    const dropdownButtons = document.querySelectorAll('.quick-filter[data-panel]');
    const dropdownFilters = document.querySelectorAll('.dropdown-filter');
    const dropdownCloseButtons = document.querySelectorAll('.dropdown-close, .dropdown-action.btn-outline-secondary');
    
    // 打开下拉面板
    dropdownButtons.forEach(button => {
      button.addEventListener('click', function() {
        const panelId = this.getAttribute('data-panel');
        document.getElementById(panelId).classList.add('active');
      });
    });
    
    // 关闭下拉面板
    function closeDropdowns() {
      dropdownFilters.forEach(panel => {
        panel.classList.remove('active');
      });
    }
    
    dropdownCloseButtons.forEach(button => {
      button.addEventListener('click', closeDropdowns);
    });
    
    // 点击面板外部关闭
    dropdownFilters.forEach(panel => {
      panel.addEventListener('click', function(e) {
        if (e.target === this) {
          closeDropdowns();
        }
      });
    });
    
    // 筛选选项选择（通用）
    function setupFilterOptions(selector) {
      document.querySelectorAll(selector).forEach(item => {
        item.addEventListener('click', function() {
          // 查找同一组的选项
          const optionsGroup = this.closest('.filter-options, .option-items');
          
          // 移除同组其他选项的激活状态
          optionsGroup.querySelectorAll(selector).forEach(i => {
            i.classList.remove('active');
          });
          
          // 激活当前选项
          this.classList.add('active');
        });
      });
    }
    
    // 设置不同筛选区域的选项点击事件
    setupFilterOptions('.filter-option');
    setupFilterOptions('.option-item');
    
    // 高级筛选应用
    document.getElementById('apply-filter').addEventListener('click', function() {
      // 在实际应用中，这里会收集所有选中的筛选条件
      alert('筛选条件已应用');
    });
    
    // 高级筛选重置
    document.getElementById('reset-filter').addEventListener('click', function() {
      document.querySelectorAll('.filter-option.active, .option-item.active').forEach(item => {
        item.classList.remove('active');
      });
    });
    
    // 已选筛选标签移除
    document.querySelectorAll('.tag-remove').forEach(removeBtn => {
      removeBtn.addEventListener('click', function() {
        this.closest('.filter-tag').remove();
      });
    });
    
    // 清除全部筛选条件
    document.getElementById('clear-all').addEventListener('click', function() {
      document.querySelectorAll('.filter-tag').forEach(tag => {
        tag.remove();
      });
      
      // 重置所有筛选状态
      document.querySelectorAll('.quick-filter, .filter-option, .option-item').forEach(item => {
        item.classList.remove('active');
      });
      
      // 激活"全部职位"
      document.querySelector('.quick-filter[data-type="all"]').classList.add('active');
    });
    
    // 下拉筛选确定按钮
    document.querySelectorAll('.dropdown-action.btn-primary').forEach(button => {
      button.addEventListener('click', function() {
        const panel = this.closest('.dropdown-filter');
        const panelId = panel.id;
        
        // 获取选中的选项
        const selectedOption = panel.querySelector('.option-item.active');
        if (selectedOption) {
          // 在实际应用中，这里会添加筛选标签并刷新列表
          alert(`已选择${selectedOption.textContent}`);
        }
        
        closeDropdowns();
      });
    });
  </script>
</body>
</html>